<?php
class Student{
    // public function __construct()
    // {
    //     echo "我是构造函数";
    // }
    private $name;
    private $age;
    public function __construct($name,$age)
    {
        $this->name=$name;
        $this->age=$age;
    }
    public function show(){
        echo $this->age;
        echo $this->age;
    }
}
$stu=new Student("zs",10);
$stu->show();
?>